
import Axios from 'axios'
Axios.defaults.baseURL = '/api'
const AdminComponent = {
    type: 'AdminComponent',
    title: '动态组件',
    list: [
        {
            type: 'Slider',
            text: '滑块',
            value: 0
        }
    ]
}
export default (async function() {
    await Axios.get('/form/findFormList.action?condition=&sort=form_def_id&order=order&offset=0&limit=10&formDefFolderId=1&pageSize=1&swaggerUserCode=sysadmin')
        .then(res => {
            AdminComponent.list = res.data.rows
        })
    return AdminComponent
})()
